/*
 * 还原一个字符串不确定被JSON.stringify了几次
 **/
const uesParseUntilCannot = (str) => {
  let result = str;
  while (true) {
    try {
      result = JSON.parse(result);
    } catch (e) {
      break;
    }
  }
  return result;
}

export {
  uesParseUntilCannot
}
